<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/common/taglibs.jsp"%>
<c:set var="nature_value">
    <x:out
            select="$xmlData/data/organizations/organization[@submit_org='1']/nature_value"/>
</c:set>
<input type="hidden" name="organization/whether_is_provincepark_value"
       value="<x:out select="$xmlData/data/organization/whether_is_provincepark_value" />"/>
    <div class="t_bar"><span class="color_red">*</span>${param.title }</div>
    <table class="t_css table01" width="100%" border="0" cellpadding="0"
           id="orgInfo" cellspacing="1">
        <col style="width: 30%"/>
        <col style="width: 20%"/>
        <col style="width: 30%"/>
        <col style="width: 20%"/>
        <tr>
            <td align="right" nowrap>单位名称：</td>
            <td colspan="3">
            <span name="organizations/organization/org_name"><x:out
                    select="$xmlData/data/organizations/organization[@submit_org='1']/org_name"/></span>
            </td>
        </tr>
        <tr>
            <td align="right" nowrap>注册所在地：</td>
            <td colspan="3">
            <span name="organizations/organization/area_name"><x:out
                    select="$xmlData/data/organizations/organization[@submit_org='1']/area_name"/></span>
            </td>
        </tr>

        <tr>
            <td align="right" nowrap>单位地址：</td>
            <td colspan="3">
            <span name="organizations/organization/address"><x:out
                    select="$xmlData/data/organizations/organization[@submit_org='1']/address"/></span>
            </td>
        </tr>
        <tr>
            <td align="right">单位类型：</td>
            <td>
                <c:choose>
                    <c:when test="${fn:substring(nature_value,0,1) eq 'A'}">
					<span name="organizations/organization/org_type_name">
						<x:out
                                select="$xmlData/data/organizations/organization[@submit_org='1']/org_type_name"/>
					</span>
                    </c:when>
                    <c:otherwise>
					<span name="organizations/organization/org_type_name">
						<x:out
                                select="$xmlData/data/organizations/organization[@submit_org='1']/org_type1_name"/>
					</span>
                    </c:otherwise>

                </c:choose>

            </td>
            <td align="right">组织机构代码/统一社会信用代码：</td>
            <td colspan="2">
			<span name="organizations/organization/org_no">
				<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_shxy_no"/>
			</span>
            </td>
        </tr>
        <tr>
            <td align="right">所属产业领域：</td>
            <td colspan="3" align="left">
                <%-- <input type="hidden" name="proposal/need_approve" value="${need_approve}"> --%>
                <c:set var="applicant_subject_value"><x:out
                        select="$xmlData/data/proposal/applicant_subject_value"/></c:set>
                <c:set var="appl_sub_params">
                    {'grant_code':'<x:out select="$xmlData/data/proposal/sub_grant_code"/>','stat_year':'${statYear}'}
                </c:set>
                <input name="proposal/applicant_subject_value" type="hidden"
                       value="<x:out select="$xmlData/data/proposal/applicant_subject_value" />" class="required "
                       label="所属产业领域"/>
                <input name="proposal/applicant_subject_name" type="hidden"
                       value="<x:out select="$xmlData/data/proposal/applicant_subject_name" />"/>
                <cpt:select style="width: 50%;" id="applicant_subject" key="applicant_subject" className="selectWidth2"
                            onChange="initControlValue('applicant_subject')" value="${applicant_subject_value}"
                            sqlParamVal="${appl_sub_params}"></cpt:select>
            </td>
        </tr>
        <tr>
            <td align="right">主要研究方向：</td>
            <td colspan="3">
            <textarea name="project/rd_direction" class="input_textarea required maxlength:200" label="主要研究方向" rows=5
                      style="width:98%"><x:out select="$xmlData/data/project/rd_direction"/></textarea>
                <input type="hidden" name="project/rd_direction_hidden" id="project/rd_direction_hidden"
                       value="<x:out select="$xmlData/data/project/rd_direction_hidden" />"/>
            </td>
        </tr>
        <tr>
            <td align="right">是否建有省级以上研发机构：</td>
            <td>
                <c:set var="yn1_value"><x:out select="$xmlData/data/proposal/yn1_value"/></c:set>
                <cpt:checkbox key="yes_or_no" name="yn1" repeatColumn="2" tagType="radio" onClick="result1()"
                              value="${yn1_value}" style="border: 0px; padding: 0px; margin: 0px;"></cpt:checkbox>
                <input type="hidden" name="proposal/yn1_value" id="yn1" class="required"
                       value="<x:out select="$xmlData/data/proposal/yn1_value" />" label="是否建有省级以上研发机构"/>
                <input type="hidden" name="proposal/yn1_name"
                       value="<x:out select="$xmlData/data/proposal/yn1_name" />"/>
            </td>
            <td align="right">省级以上研发机构名称：</td>
            <td>
                <input type="text" name="proposal/province_rd" id="province_rd" style="display:none"
                       maxlength="100" value="<x:out select="$xmlData/data/proposal/province_rd"/>" label="省级以上研发机构名称">
            </td>
        </tr>
        <tr>
            <td align="right">是否省级工程技术研究中心转建：</td>
            <td>
                <c:set var="yn2_value"><x:out select="$xmlData/data/proposal/yn2_value"/></c:set>
                <cpt:checkbox key="yes_or_no" name="yn2" repeatColumn="2" tagType="radio" onClick="result2()"
                              value="${yn2_value}"></cpt:checkbox>
                <input type="hidden" name="proposal/yn2_value" id="yn2" class="required"
                       value="<x:out select="$xmlData/data/proposal/yn2_value" />" label="是否省级工程技术研究中心转建"/>
                <input type="hidden" name="proposal/yn2_name"
                       value="<x:out select="$xmlData/data/proposal/yn2_name" />"/>
            </td>
            <td align="right">若是，原有省级工程技术研究中心名称：</td>
            <td>
                <input type="text" name="proposal/province_engineering" id="province_engineering" style="display:none"
                       maxlength="100"
                       value="<x:out select="$xmlData/data/proposal/province_engineering"/>" label="若是，原有省级工程技术研究中心名称">
            </td>
        </tr>
        <tr>
            <td align="right">单位是否安徽省内独立法人：</td>
            <td>
                <c:set var="yn3_value"><x:out select="$xmlData/data/proposal/yn3_value"/></c:set>
                <cpt:checkbox key="yes_or_no" name="yn3" repeatColumn="2" tagType="radio"
                              value="${yn3_value}"></cpt:checkbox>
                <input type="hidden" name="proposal/yn3_value" id="yn3" class="required"
                       value="<x:out select="$xmlData/data/proposal/yn3_value" />" label="单位是否安徽省内独立法人"/>
                <input type="hidden" name="proposal/yn3_name"
                       value="<x:out select="$xmlData/data/proposal/yn3_name" />"/>
            </td>
            <td align="right">单位是否运行两年以上：</td>
            <td>
                <c:set var="yn4_value"><x:out select="$xmlData/data/proposal/yn4_value"/></c:set>
                <cpt:checkbox key="yes_or_no" name="yn4" repeatColumn="2" tagType="radio"
                              value="${yn4_value}" ></cpt:checkbox>
                <input type="hidden" name="proposal/yn4_value" id="yn4" class="required"
                       value="<x:out select="$xmlData/data/proposal/yn4_value" />" label="单位是否运行两年以上"/>
                <input type="hidden" name="proposal/yn4_name"
                       value="<x:out select="$xmlData/data/proposal/yn4_name" />"/>
            </td>
        </tr>
        <tr>
            <td align="right">是否有效期内高新技术企业：</td>
            <td>
				<span name="organization/whether_is_gaoxin_name">
					<x:out select="$xmlData/data/organization/whether_is_gaoxin_name"/>
				</span>
            </td>
            <td align="right">高新技术企业证书编号：</td>
            <td>
						<span name="organization/cer_no">
							<x:out select="$xmlData/data/organization/cer_no"/>
						</span>
            </td>
        </tr>
    </table>
    <div class="t_bar"><span class="color_red">*</span>${param.title2 }</div>
    <table class="t_css table01" width="100%" border="0" cellpadding="0" id="orgPsnInfo" cellspacing="1">

        <col style="width:30%"/>
        <col style="width:20%"/>
        <col style="width:30%"/>
        <col style="width:20%"/>
        <tr>
            <td align="right" nowrap>法定代表人姓名：</td>
            <td>
			<span name="organization_persons/cname">
				<x:out select="$xmlData/data/organization_persons/person[@type='faren']/cname"/>
		    </span>
            </td>
            <td align="right" nowrap>法定代表人手机：</td>
            <td>
			<span name="organization_persons/mobile">
				<x:out select="$xmlData/data/organization_persons/person[@type='faren']/mobile"/>
		    </span>
            </td>
        </tr>
        <tr>
            <td align="right" nowrap>职工总数（人）：</td>
            <td align="center">
			<span name="organization_persons/people_count_total">
				<x:out select="$xmlData/data/organization_persons/people_count_total"/>
		    </span>
            </td>
            <td align="right">其中：固定人员：</td>
            <td>
                <input type="text"
                       name="proposal/permanent_staff"
                       id="permanent_staff" style="width: 82%;"
                       class="required"
                       label="其中：固定人员"
                       onfocus="InitInput.setNumber(this,9,0,0)"
                       value="<x:out select="$xmlData/data/proposal/permanent_staff"/>">
            </td>
        </tr>
        <tr>
            <td align="right" rowspan="2">研发人员数（人）：</td>
            <td align="center" rowspan="2">
			<span name="organization_persons/job_yanfa">
				<x:out select="$xmlData/data/organization_persons/job_yanfa"/>
		    </span>
            </td>
            <td align="right">其中：中级职称及以上：</td>
            <td>
                <input type="text"
                       name="proposal/intermediate_up"
                       id="intermediate_up" style="width: 82%;"
                       class="required"
                       label="其中：中级职称及以上"
                       onfocus="InitInput.setNumber(this,9,0,0)"
                       value="<x:out select="$xmlData/data/proposal/intermediate_up"/>">
            </td>
        </tr>
        <tr>
            <td align="right">其中：研究生及以上学历：</td>
            <td>
                <input type="text"
                       name="proposal/graduate_up"
                       id="graduate_up" style="width: 82%;"
                       class="required"
                       label="其中：研究生及以上学历"
                       onfocus="InitInput.setNumber(this,9,0,0)"
                       value="<x:out select="$xmlData/data/proposal/graduate_up"/>">
            </td>
        </tr>
    </table>
    <div class="t_bar"><span class="color_red">*</span>${param.title3 }</div>
    <table class="t_css table01" width="100%" border="0" cellpadding="0" id="orgFinanceInfo" cellspacing="1">
        <col style="width:30%"/>
        <col style="width:20%"/>
        <col style="width:30%"/>
        <col style="width:20%"/>
        <tr>

            <td align="right" nowrap>上年度主营业务收入（单位：万元）：</td>
            <td align="center">
			<span name="finances/income_main" id="income_main">
			<c:if test="${stat_year eq curr_year }">
                <x:out select="$xmlData/data/organization/finances/finance[@sequence_no=5]/income_main"/>
            </c:if>
			<c:if test="${stat_year+1 eq curr_year }">
                <x:out select="$xmlData/data/organization/finances/finance[@sequence_no=3]/income_main"/>
            </c:if>
			<c:if test="${stat_year+2 eq curr_year }">
                <x:out select="$xmlData/data/organization/finances/finance[@sequence_no=2]/income_main"/>
            </c:if>
		    </span>
            </td>
            <td align="right" nowrap>上年度研究开发费用（单位：万元）：</td>
            <td align="center">
			<span name="finances/yanfa_income" id="yanfa_income">
				<c:if test="${stat_year eq curr_year }">
                    <x:out select="$xmlData/data/organization/finances/finance[@sequence_no=5]/yanfa_income"/>
                </c:if>
				<c:if test="${stat_year+1 eq curr_year }">
                    <x:out select="$xmlData/data/organization/finances/finance[@sequence_no=3]/yanfa_income"/>
                </c:if>
				<c:if test="${stat_year+2 eq curr_year }">
                    <x:out select="$xmlData/data/organization/finances/finance[@sequence_no=2]/yanfa_income"/>
                </c:if>
		    </span>
            </td>
        </tr>
        <tr>
            <td align="right">研究开发费用占主营业务收入比例：</td>
            <td colspan="3">
                <input type="text"
                       class="gray input_css"
                       disabled="disabled"
                       name="proposal/rd_proportion"
                       id="rd_proportion" style="width:23%;text-align: center;"
                       label="研究开发费用占主营业务收入比例"
                       value="<x:out select="$xmlData/data/proposal/rd_proportion"/>">
            </td>
        </tr>
        <tr>
            <td align="right">研发场地面积（平方米）：</td>
            <td>
                <input type="text"
                       name="proposal/rd_place"
                       id="rd_place" style="width: 82%;text-align: right;"
                       class="required"
                       label="研发场地面积"
                       onfocus="InitInput.setNumber(this,9,4,2)"
                       value="<x:out select="$xmlData/data/proposal/rd_place"/>">
            </td>
            <td align="right">研发仪器设备总值（万元）：</td>
            <td align="center">
                <%--<c:set var="yanfa_instrument"><x:out select="$xmlData/data/proposal/yanfa_instrument"/></c:set>
                <c:if test="${empty yanfa_instrument}">
                    <c:set var="yanfa_instrument">
                        <c:if test="${stat_year eq curr_year }">
                            <x:out select="$xmlData/data/organization/finances/finance[@sequence_no=5]/yanfa_instrument"/>
                        </c:if>
                        <c:if test="${stat_year+1 eq curr_year }">
                            <x:out select="$xmlData/data/organization/finances/finance[@sequence_no=3]/yanfa_instrument"/>
                        </c:if>
                        <c:if test="${stat_year+2 eq curr_year }">
                            <x:out select="$xmlData/data/organization/finances/finance[@sequence_no=2]/yanfa_instrument"/>
                        </c:if>
                    </c:set>
                </c:if>--%>
                <input type="text" name="proposal/yanfa_instrument" label="研发仪器设备总值" class="required" onfocus="InitInput.setNumber(this,9,4,2)" style="width: 82%;text-align: right;" value="<x:out select="$xmlData/data/proposal/yanfa_instrument"/>"/>
            </td>
        </tr>
    </table>
    <div class="t_bar"><span class="color_red">*</span>${param.title6 }</div>
    <table class="t_css table01" width="100%" border="0" cellpadding="0" id="orgKnowledgeInfo" cellspacing="1">
        <col style="width:30%"/>
        <col style="width:20%"/>
        <col style="width:16.6%"/>
        <col style="width:16.7%"/>
        <col style="width:16.7%"/>

        <tr align="center">
            <td rowspan="2" align="right">获奖（项）</td>
            <td>总计</td>
            <td>国家级</td>
            <td>省部级</td>
            <td>其它</td>
        </tr>
        <tr align="center">
            <td>
                <input type="text"
                       class="gray input_css"
                       disabled="disabled"
                       name="proposal/sum1"
                       id="sum1" style="width:82%;"
                       label="获奖-->总计"
                       value="<x:out select="$xmlData/data/proposal/sum1"/>">
            </td>
            <td>
                <input type="text"
                       name="proposal/award_state"
                       id="award_state" style="width: 82%;"
                       class="required"
                       label="获奖-->国家级"
                       onchange="sum1()"
                       onfocus="InitInput.setNumber(this,9,0,0)"
                       value="<x:out select="$xmlData/data/proposal/award_state"/>">
            </td>
            <td>
                <input type="text"
                       name="proposal/award_province"
                       id="award_province" style="width: 82%;"
                       class="required"
                       label="获奖-->省部级"
                       onchange="sum1()"
                       onfocus="InitInput.setNumber(this,9,0,0)"
                       value="<x:out select="$xmlData/data/proposal/award_province"/>">
            </td>
            <td>
                <input type="text"
                       name="proposal/award_rest"
                       id="award_rest" style="width: 82%;"
                       class="required"
                       label="获奖-->其他"
                       onchange="sum1()"
                       onfocus="InitInput.setNumber(this,9,0,0)"
                       value="<x:out select="$xmlData/data/proposal/award_rest"/>">
            </td>
        </tr>
        <tr align="center">
            <td rowspan="2" align="right">科研项目（项）</td>
            <td>总计</td>
            <td>国家级</td>
            <td>省部级</td>
            <td>产学研合作</td>
        </tr>
        <tr align="center">
            <td>
                <input type="text"
                       class="gray input_css"
                       disabled="disabled"
                       name="proposal/sum2"
                       id="sum2" style="width:82%;"
                       label="科研项目-->总计"
                       value="<x:out select="$xmlData/data/proposal/sum2"/>">
            </td>
            <td>
                <input type="text"
                       name="proposal/research_state"
                       id="research_state" style="width: 82%;"
                       class="required"
                       label="科研项目-->国家级"
                       onchange="sum2()"
                       onfocus="InitInput.setNumber(this,9,0,0)"
                       value="<x:out select="$xmlData/data/proposal/research_state"/>">
            </td>
            <td>
                <input type="text"
                       name="proposal/research_province"
                       id="research_province" style="width: 82%;"
                       class="required"
                       label="科研项目-->省部级"
                       onchange="sum2()"
                       onfocus="InitInput.setNumber(this,9,0,0)"
                       value="<x:out select="$xmlData/data/proposal/research_province"/>">
            </td>
            <td>
                <input type="text"
                       name="proposal/research_rest"
                       id="research_rest" style="width: 82%;"
                       class="required"
                       label="科研项目-->产学研合作"
                       onchange="sum2()"
                       onfocus="InitInput.setNumber(this,9,0,0)"
                       value="<x:out select="$xmlData/data/proposal/research_rest"/>">
            </td>
        </tr>
    </table>

     <table class="t_css table01" width="100%" border="0" cellpadding="0" id="orgKnowledgeInfo" cellspacing="1">
            <col style="width:30%"/>
            <col style="width:20%"/>
            <col style="width:2.5%"/>
            <col style="width:2.5%"/>
            <col style="width:2.5%"/>
            <col style="width:2.5%"/>
            <col style="width:2.5%"/>
            <col style="width:2.5%"/>
            <col style="width:2.5%"/>
            <col style="width:2.5%"/>
            <col style="width:2.5%"/>
            <col style="width:2.5%"/>
            <col style="width:2.5%"/>
            <col style="width:2.5%"/>
            <col style="width:2.5%"/>
            <col style="width:2.5%"/>
            <col style="width:2.5%"/>
            <col style="width:2.5%"/>
            <col style="width:2.5%"/>
            <col style="width:2.5%"/>
            <col style="width:2.5%"/>
            <col style="width:2.5%"/>

        <tr align="center">
            <td rowspan="6" align="right">知识产权（项）</td>
            <td rowspan="2">专利授权总数</td>
            <td colspan="20">其中</td>
        </tr>
        <tr align="center">
            <td colspan="5">PCT专利</td>
            <td colspan="5">发明专利</td>
            <td colspan="5">实用新型专利</td>
            <td colspan="5">其它</td>
        </tr>
        <tr align="center">
            <td >
                <input type="text"
                       class="gray input_css"
                       disabled="disabled"
                       name="proposal/sum3"
                       id="sum3" style="width:82%;"
                       label="知识产权-->专利授权总数"
                       value="<x:out select="$xmlData/data/proposal/sum3"/>">
            </td>
            <td colspan="5">
                <input type="text"
                       name="proposal/intellectual_pct"
                       id="intellectual_pct" style="width: 82%;"
                       class="required"
                       label="知识产权-->PCT专利"
                       onchange="sum3()"
                       onfocus="InitInput.setNumber(this,9,0,0)"
                       value="<x:out select="$xmlData/data/proposal/intellectual_pct"/>">
            </td>
            <td colspan="5">
                <input type="text"
                       name="proposal/intellectual_invent"
                       id="intellectual_invent" style="width: 82%;"
                       class="required"
                       label="知识产权-->发明专利"
                       onchange="sum3()"
                       onfocus="InitInput.setNumber(this,9,0,0)"
                       value="<x:out select="$xmlData/data/proposal/intellectual_invent"/>">
            </td>
            <td colspan="5">
                <input type="text"
                       name="proposal/intellectual_practical"
                       id="intellectual_practical" style="width: 82%;"
                       class="required"
                       label="知识产权-->实用新型专利"
                       onchange="sum3()"
                       onfocus="InitInput.setNumber(this,9,0,0)"
                       value="<x:out select="$xmlData/data/proposal/intellectual_practical"/>">
            </td>
            <td colspan="5">
                <input type="text"
                       name="proposal/intellectual_rest"
                       id="intellectual_rest" style="width: 82%;"
                       class="required"
                       label="知识产权-->其他"
                       onchange="sum3()"
                       onfocus="InitInput.setNumber(this,9,0,0)"
                       value="<x:out select="$xmlData/data/proposal/intellectual_rest"/>">
            </td>
        </tr>
        <tr align="center">
            <td rowspan="2">制定标准总数</td>
            <td colspan="20">其中</td>
        </tr>
        <tr align="center">
            <td colspan="4">国际标准</td>
            <td colspan="4">国家标准</td>
            <td colspan="4">行业标准</td>
            <td colspan="4">地方标准</td>
            <td colspan="4">企业标准</td>
        </tr>
        <tr align="center">
            <td>
                <input type="text"
                       class="gray input_css"
                       disabled="disabled"
                       name="proposal/sum4"
                       id="sum4" style="width:82%;"
                       label="知识产权-->制定标准总数"
                       value="<x:out select="$xmlData/data/proposal/sum4"/>">
            </td>
            <td colspan="4">
                <input type="text"
                       name="proposal/international"
                       id="intellectual_international" style="width: 82%;"
                       class="required"
                       label="知识产权-->国际标准"
                       onchange="sum4()"
                       onfocus="InitInput.setNumber(this,9,0,0)"
                       value="<x:out select="$xmlData/data/proposal/international"/>">
            </td>
            <td colspan="4">
                <input type="text"
                       name="proposal/intellectual_state"
                       id="intellectual_state" style="width: 82%;"
                       class="required"
                       label="知识产权-->国家标准"
                       onchange="sum4()"
                       onfocus="InitInput.setNumber(this,9,0,0)"
                       value="<x:out select="$xmlData/data/proposal/intellectual_state"/>">
            </td>
            <td colspan="4">
                <input type="text"
                       name="proposal/intellectual_industry"
                       id="intellectual_industry" style="width: 82%;"
                       class="required"
                       label="知识产权-->行业标准"
                       onchange="sum4()"
                       onfocus="InitInput.setNumber(this,9,0,0)"
                       value="<x:out select="$xmlData/data/proposal/intellectual_industry"/>">
            </td>
            <td colspan="4">
                <input type="text"
                       name="proposal/intellectual_place"
                       id="intellectual_place" style="width: 82%;"
                       class="required"
                       label="知识产权-->地方标准"
                       onchange="sum4()"
                       onfocus="InitInput.setNumber(this,9,0,0)"
                       value="<x:out select="$xmlData/data/proposal/intellectual_place"/>">
            </td>
            <td colspan="4">
                <input type="text"
                       name="proposal/intellectual_enterprise"
                       id="intellectual_enterprise" style="width: 82%;"
                       class="required"
                       label="知识产权-->企业标准"
                       onchange="sum4()"
                       onfocus="InitInput.setNumber(this,9,0,0)"
                       value="<x:out select="$xmlData/data/proposal/intellectual_enterprise"/>">
            </td>
        </tr>
        <tr>
            <td align="right">新产品新技术</td>
            <td colspan="21">
            <textarea name="project/product_technology" class="input_textarea required maxlength:200" label="新产品新技术"
                      rows=5 style="width:98%"><x:out select="$xmlData/data/project/product_technology"/></textarea>
                <input type="hidden" name="project/product_technology_hidden" id="project/product_technology_hidden"
                       value="<x:out select="$xmlData/data/project/product_technology_hidden" />"/>
            </td>
        </tr>
        <tr>
            <td align="right">技术转让（项）</td>
            <td align="right">
                <input type="text"
                       name="proposal/make_over"
                       class="required"
                       id="make_over" style="width:82%;"
                       label="技术转让"
                       onfocus="InitInput.setNumber(this,9,0,0)"
                       value="<x:out select="$xmlData/data/proposal/make_over"/>">
            </td>
            <td colspan="12" align="right">技术转让收益（万元）</td>
            <td colspan="8" align="right">
                <input type="text"
                       name="proposal/technology_earnings"
                       id="technology_earnings" style="width:82%;text-align: right;"
                       class="required"
                       label="技术转让收益"
                       onfocus="InitInput.setNumber(this,9,4,2)"
                       value="<x:out select="$xmlData/data/proposal/technology_earnings"/>">
            </td>
        </tr>
    </table>
<script type="text/javascript">
    $(function() {
        var income_main  = $("#income_main").text();
        if(!!income_main){
            income_main = income_main.replace(/,/g,"");
        }
        var yanfa_income = $("#yanfa_income").text();
        if(!!yanfa_income){
            yanfa_income = yanfa_income.replace(/,/g,"");
        }
        $("#rd_proportion").val(formatVal((yanfa_income/income_main)*100)+"%");
        var result1 = $("#yn1").val();
        if (result1 == 1){
            $("#province_rd").removeAttr("style","display:none");
            $("#province_rd").attr("style","width:82%");
            $("#province_rd").addClass("required");
        }else {
            $("#province_rd").val('');
            $("#province_rd").removeAttr("style","width:82%");
            $("#province_rd").attr("style","display:none");
            $("#province_rd").removeClass("required");
        }

        var result2 = $("#yn2").val();
        if (result2 == 1){
            $("#province_engineering").removeAttr("style","display:none");
            $("#province_engineering").attr("style","width:82%");
            $("#province_engineering").addClass("required");
        }else {
            $("#province_engineering").val('');
            $("#province_engineering").removeAttr("style","width:82%");
            $("#province_engineering").attr("style","display:none");
            $("#province_engineering").removeClass("required");
        }

    });

    function result1() {
        var result1 = $("#yn1").val();
        if (result1 == 1){
            $("#province_rd").removeAttr("style","display:none");
            $("#province_rd").attr("style","width:82%");
            $("#province_rd").addClass("required");
        }else {
            $("#province_rd").val('');
            $("#province_rd").removeAttr("style","width:82%");
            $("#province_rd").attr("style","display:none");
            $("#province_rd").removeClass("required");
        }
    }

    function result2() {
        var result2 = $("#yn2").val();
        if (result2 == 1){
            $("#province_engineering").removeAttr("style","display:none");
            $("#province_engineering").attr("style","width:82%");
            $("#province_engineering").addClass("required");
        }else {
            $("#province_engineering").val('');
            $("#province_engineering").removeAttr("style","width:82%");
            $("#province_engineering").attr("style","display:none");
            $("#province_engineering").removeClass("required");
        }
    }


    function sum1() {
        var award_state  = $("#award_state").val();
        var award_province = $("#award_province").val();
        var award_rest =$("#award_rest").val();
        if (award_state=='' || award_state ==null){award_state=0}
        if (award_province=='' || award_province ==null){award_province=0}
        if (award_rest=='' || award_rest ==null){award_rest=0}
        $("#sum1").val(parseInt(award_state) +parseInt(award_province)+parseInt(award_rest));
    }

    function sum2() {
        var research_state  = $("#research_state").val();
        var research_province = $("#research_province").val();
        var research_rest =$("#research_rest").val();
        if (research_state==''    || research_state ==null)   {research_state=0}
        if (research_province=='' || research_province ==null){research_province=0}
        if (research_rest==''     || research_rest ==null)    {research_rest=0}
        $("#sum2").val(parseInt(research_state) +parseInt(research_province)+parseInt(research_rest));
    }

    function sum3() {
        var intellectual_pct  = $("#intellectual_pct").val();
        var intellectual_invent = $("#intellectual_invent").val();
        var intellectual_practical =$("#intellectual_practical").val();
        var intellectual_rest =$("#intellectual_rest").val();
        if (intellectual_pct==''    || intellectual_pct ==null)   {intellectual_pct=0}
        if (intellectual_invent=='' || intellectual_invent ==null){intellectual_invent=0}
        if (intellectual_practical==''     || intellectual_practical ==null)    {intellectual_practical=0}
        if (intellectual_rest==''     || intellectual_rest ==null)    {intellectual_rest=0}
        $("#sum3").val(parseInt(intellectual_pct) +parseInt(intellectual_invent)+parseInt(intellectual_practical)+parseInt(intellectual_rest));
    }

    function sum4() {
        var intellectual_international  = $("#intellectual_international").val();
        var intellectual_state = $("#intellectual_state").val();
        var intellectual_industry =$("#intellectual_industry").val();
        var intellectual_place =$("#intellectual_place").val();
        var intellectual_enterprise =$("#intellectual_enterprise").val();
        if (intellectual_international==''    || intellectual_international ==null)   {intellectual_international=0}
        if (intellectual_state=='' || intellectual_state ==null){intellectual_state=0}
        if (intellectual_industry==''     || intellectual_industry ==null)    {intellectual_industry=0}
        if (intellectual_place==''     || intellectual_place ==null)    {intellectual_place=0}
        if (intellectual_enterprise==''     || intellectual_enterprise ==null)    {intellectual_enterprise=0}
        $("#sum4").val(parseInt(intellectual_international) +parseInt(intellectual_state)+parseInt(intellectual_industry)+parseInt(intellectual_place)+parseInt(intellectual_enterprise));
    }

    $("table").addClass("table01");
    $("#checkbox_table_").removeClass("table01");
    $("#feaReport_upload").removeClass("table01");
    $('div').find("[id^='checkbox_dyn_']").find("td").css("border",'0px solid')

</script>
